﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL = Auto.Data.BusMan.BLL;
using Model = Auto.Data.BusMan.Model;

namespace Auto.BusMan.AddForm
{
    public partial class fmSecruityAnalysisMeetingAddForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitPage();
            }
        }

        private void InitPage()
        {
            string docid = Request.QueryString["DocID"];
            BindData(docid);
        }

        private void BindData(string docid)
        {
            BLL.SecruityAnalysisMeeting bl = new BLL.SecruityAnalysisMeeting();
            Model.SecruityAnalysisMeeting model = bl.GetModel(docid);

            //this.lblCompanyID.Text = model.CompanyID;
            this.lblCompanyName.Text = new Auto.Data.HumanResource.Division(model.RecDivID).ShortName;
            this.lblDocID.Text = model.DocID;
            this.lblMeetingTime.Text = model.MeetingTime.ToString();
            this.lblMeetingAddress.Text = model.MeetingAddress;
            this.lblModerator.Text = model.Moderator;
            this.lblAttendees.Text = model.Attendees;
            this.lblMeetingAgenda.Text = model.MeetingAgenda;
            this.lblMeetingMinutes.Text = model.MeetingMinutes;

        }
    }
}